package com.order.api.service;

import com.order.api.vo.request.UserFindRequest;
import com.order.api.vo.request.UsersAddRequest;
import com.order.api.vo.request.UsersUpdateRequest;
import com.order.api.vo.response.UsersResponse;

import java.util.List;
import java.util.Map;

public interface UsersService {

    /**
     * 查询用户
     */
    UsersResponse findUser(UserFindRequest request);

    /**
     * 添加用户
     */
    boolean addUser(UsersAddRequest request);

    /**
     * 修改用户
     */
    boolean updateUser(UsersUpdateRequest request);

    /**
     *删除用户
     */
    boolean deleteUser(UserFindRequest request);

    /**
     * 用户信息
     */
    Map<Long,String> getIdAndName(List<Long> ids);
}
